﻿CREATE PROCEDURE [maint].[UpdateDeviceHeader]
@NewDeviceName [sysname], @OldDeviceName [sysname]
AS
BEGIN
	DECLARE @RC int;
	SET @RC = 0;
	
	UPDATE [maint].[DeviceHeaders]
	SET	[DeviceName] = @NewDeviceName
	WHERE ([DeviceName] = @OldDeviceName);

	SET @RC = @@ERROR;

	RETURN(@RC);
END